package com.slowfly.rule.engine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.slowfly.rule.engine.entity.Decision;
import com.slowfly.rule.engine.param.DecisionParam;
import com.slowfly.rule.engine.result.DecisionResult;
import com.slowfly.rule.engine.result.PageResult;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shalongfei
 * @since 2024-03-06
 */
public interface IDecisionService extends IService<Decision> {

    void setCache();

    void editCache(int type, int id);

    Decision get(Integer id);

    List<DecisionResult> listDecision();

    PageResult<DecisionResult> pageDecision(DecisionParam param);

    boolean addDecision(DecisionParam param);

    boolean editDecision(DecisionParam param);

    boolean deleteDecision(DecisionParam param);

    boolean checkDeleteFeature(Integer featureId);
}
